import App from '../App'



const home = r => require.ensure([], () => r(require('../view/Home')), 'home')
const login = r => require.ensure([], () => r(require('../view/Login')), 'login')
const register = r => require.ensure([], () => r(require('../view/Register')), 'register')



export default [{
  path: '/',
  component: App,
  children: [
    {
      path: '',
      component: home
    },
    {
      path: '/home',
      component: home
    },
    {
      path: '/login',
      component: login
    },
    {
      path: '/register',
      component: register
    }
  ]
}]
